package hub.cathome.entity;

import java.util.Date;

/**
 * 用于  从资源id和资源路径之间的映射，在网页中
 * **/
public class ResourceLink {
    private Integer resourceId;//资源id
    private String path;//资源路径
    private Date date;//资源的上传时间，用于用户选择资源时进行排序展示
    /**
     * 1 for shotBlog image ,2 for record image
     * **/
    private Integer type;
    private Integer forId;
    public ResourceLink() {
    }

    public Integer getResourceId() {
        return resourceId;
    }

    public void setResourceId(Integer resourceId) {
        this.resourceId = resourceId;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getForId() {
        return forId;
    }

    public void setForId(Integer forId) {
        this.forId = forId;
    }

    @Override
    public String toString() {
        return "ResourceLink{" +
                "resourceId=" + resourceId +
                ", path='" + path + '\'' +
                ", date=" + date +
                ", type=" + type +
                ", forId=" + forId +
                '}';
    }
}
